import {
  termBrand
} from "_a/team";
export default {
  data() {
    return {
      brandList:[]
    } 
  },
  created() {
    this.getTermBrand()
  },
  methods: {
    getTermBrand() {
      termBrand().then((res) => {
        if (res.code == 200) {
          this.brandList = this.brandList.concat(res.data);
          console.log(this.brandList);
        }
      });
    },
    getBrandStr(id){
      let item = this.brandList.find(item=>item.id==id)
      if(item){
        return item.brandName
      }
    },
  }
}